easycrm.controller('signIn', ['$scope', '$http', 'ngNotify', function ($scope, $http, ngNotify) {
    $scope.User = {userName: null, password: null};
    $scope.signIn = function () {
        $http.post('signIn', $scope.User).then(function (response) {

            if (response.data.success) {
                console.log(response)
                go('dashboard');//跳转到销售漏斗数据获取的js
            } else {
                ngNotify.set(response.data.message, 'error');//error是弹出框样式
            }
        });
    };
}]);